package com.two.service.order.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.checkerframework.checker.units.qual.A;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.security.crypto.codec.Utf8;

/**
 * <p>
 * 
 * </p>
 *
 * @author 汪瑞明
 * @since 2022-09-01
 */
@ApiModel(value = "Orders对象", description = "")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Orders implements Serializable {


    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单id")
    @TableId(value = "oid",type = IdType.AUTO)
    private String oid;

    @ApiModelProperty("菜名")
    private String dishName;

    @ApiModelProperty("餐厅名")
    private Integer rid;

    @ApiModelProperty("价格")
    private String disPrice;

    @ApiModelProperty("备注")
    private Integer remark;

    @ApiModelProperty("下单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    @ApiModelProperty("状态")
    private String status;

    @ApiModelProperty("用户昵称")
    private String usermonicker;

    @ApiModelProperty("退款时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date rebackTime;

    @ApiModelProperty("支付宝流水号")
    private String alipayNo;

    @ApiModelProperty("订单状态（0 存在  1 删除）")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(" 订单编号")
    private String ordersid;

    @ApiModelProperty("商品数量")
    private Integer sum;

    @ApiModelProperty("商品总价")
    private String totalPrice;

    @ApiModelProperty("支付时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date paymentTime;

    @ApiModelProperty("支付名称")
    private String subject;

    @ApiModelProperty("商品退款状态 0 未退款 1 发起退款 2已退款")
    private Integer productCode;

    @ApiModelProperty("菜品总价")
    private String dishTotalPrice;

    @ApiModelProperty("评论状态（1 可以评论  0 不可评论）")
    private Integer commentCode;

    @ApiModelProperty("菜品图片")
    private String menuImg;


}
